package com.itheima.article.service;

import com.itheima.article.dto.ArticleHomeDto;
import com.itheima.article.dto.ArticleInfoDto;
import com.itheima.article.pojo.ApArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.article.vo.ArticleInfoVo;
import com.itheima.common.dto.PageRequestDto;
import com.itheima.common.vo.PageResultVo;
import com.itheima.common.vo.ResultVo;

/**
 * @description <p>已发布的文章信息 业务接口</p>
 *
 * @version 1.0
 * @package com.itheima.article.service
 */
public interface ApArticleService extends IService<ApArticle> {
    /**
     * 远程调用添加文章数据
     * @param articleInfoDto
     * @return
     */
    ResultVo addArticleInfo(ArticleInfoDto articleInfoDto);

    /**
     * 上下架同步，到文章库
     * @param value
     */
    boolean apConsumer(String value);

    /**
     * app端文章分页查询
     * @param homeDto
     * @return
     */
    PageResultVo findPage(ArticleHomeDto homeDto, Integer loadType);
    /**
     * app端文章详情展示
     * @param articleId
     * @return 返回封装数据
     */
    ArticleInfoVo findArticleInfoVo(Long articleId);
}
